#pragma once

#include <iostream>
using namespace std;
#include <stdlib.h>

class Data
{
public:
	Data(int year = 1, int month = 1, int day = 1);
	Data(const Data& d);
	Data& operator=(const Data& d);

	void Print()
	{
		cout << _year << "-" << _month << "-" << _day << endl;
	}

	bool operator>(Data& d);
	bool operator==(Data& d);
	bool operator>=(Data& d);
	bool operator<(Data& d);
	bool operator<=(Data& d);
	bool operator!=(Data& d);

	int MonthDays(int year, int month);
	Data& operator+=(int day);
	Data operator+(int day);




private:
	int _year;
	int _month;
	int _day;
};
